<?xml version="1.0" encoding="utf-8"?>
<tasks>
	<% if @reports.empty? %>
 		<task id="Populate Reports" plugin="Microsoft.ProjectCreationWizard.Reporting" completionMessage="Project site created.">
	    <taskXml>
	      <ReportingServices/>
	    </taskXml>
	  </task>
	<% else %>
		<task id="Site" plugin="Microsoft.ProjectCreationWizard.Reporting" completionMessage="Project Reporting site created.">
	    <taskXml>
	      <ReportingServices>
	        <site />
	      </ReportingServices>
	    </taskXml>
	  </task>
	  <task id="Populate Reports" plugin="Microsoft.ProjectCreationWizard.Reporting" completionMessage="Project site created.">
	    <dependencies>
	      <dependency taskId="Site" />
	    </dependencies>
	    <taskXml>
	      <ReportingServices>
					<reports>
						<% @reports.each do |report| %>
							<%= report.snippet %>
						<% end %>
					</reports>
				</ReportingServices>
	    </taskXml>
	  </task>
  <% end %>
</tasks>